<div class="x_panel">
  <div class="x_content" style="display: block;">
    <div class="row-fluid">
      <label class="control-label">SPUID: </label>{$goodsitem.yx_goods_id}<br/>
      <label class="control-label">商品名称：</label>{$goodsitem.goods_name}<br/>
      <label class="control-label">图片：</label><img width="100px" height="100px" src="../{$goodsitem.goods_pic}"/><br/>
      <label class="control-label">商品描述：</label>{$goodsitem.simple_desc}<br/>
      <label class="control-label">类目：</label>
      <span>{foreach $goodsitem.categoryPathList as $key=>$categoryitem}
      {if $key!=0}<br/>{/if}{if isset($categoryitem.first_category_name)}{$categoryitem.first_category_name}{/if}{if isset($categoryitem.second_category_name)}/{$categoryitem.second_category_name}{/if}
        {/foreach}</span><br/>
    </div>
    <br>
    {if isset($goodsitem.attrList)}
    <label class="control-label">属性：</label><br/>
    {foreach $goodsitem.attrList as $ke=>$attrListitem}
    {if $ke!=0}<br/>{/if}{$attrListitem.attrName}：{$attrListitem.attrValue}
    {/foreach}
    {/if}
    <br>

    <div class="cont">
      <table class="table table-bordered table-striped">
        <thead>
        <tr>
          <th width="100px">SKU ID</th>
          <th width="100px">SKU图片</th>
          <th>SKU描述</th>
          <th>规格</th>
          <th>严选价格</th>
          <th>渠道价格</th>
          <th>实际价格</th>
          <th>库存</th>
          <th>库存状态</th>
          <th>已售</th>
        </tr>
        </thead>
        <tbody>
        {foreach $goodsitem.skuList as $k=>$skuitem}
        <tr>
          <td>{$skuitem.yx_sku_id}</td>
          <td><img src="../{$skuitem.sku_pic}" width="50px" height="50px" /> </td>
          <td width="300px">{$skuitem.display_string}</td>
          <td width="300px">
            {foreach $skuitem.sku_spec as $ke=>$specitem}
            {if $ke!=0}<br/>{/if}{$specitem.spec_name}:{$specitem.spec_value}
            {/foreach}
          </td>
          <td>{$skuitem.yanxuan_price}</td>
          <td>{$skuitem.channel_price}</td>
          <td>{$skuitem.sku_price}</td>
          <td>{$skuitem.inventory}</td>
          <td>{if $skuitem.inventory_status}库存充足{else}库存不足，已不可购买{/if}</td>
          <td>{$skuitem.sku_sales_volume}</td>
        </tr>
        {/foreach}
        </tbody>
      </table>
      <!--分页-->
    </div>
  </div>
</div>

